import { createStore } from "vuex";
import blogList from "../store/moudles/blogList";

export default createStore({
  state: {
    caculateType: "! 博客正在从vue2 重构为 Vue3",
  },
  getters: {
    caculateType: (state) => state.caculateType,
  },
  mutations: {
    changeCaculateType(state, value) {
      state.caculateType = value;
    },
  },
  actions: {
    disChangeCaculateType(context, value) {
      context.commit("changeCaculateType", value);
    },
  },
  modules: {
    blogList
  },
});
